package com.gdk.ksoft.data.entry.tables;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NotNull;
import com.lidroid.xutils.db.annotation.Table;
import com.lidroid.xutils.db.annotation.Unique;

/**
 * Created by hel on 2014-12-01.
 * 销售结算表
 */
@Table(name = "xiaoshoujisuan")
public class SaleStatisticsTable {

    /**
     * 商品结算ID
     */
    @NotNull
    @Unique
    @Id(column = "id")
    public int id;

    /**
     * 商品结算日期
     */
    @Column(column = "jsrq")
    public String jsrq;

    /**
     * 销售单ID-字符串
     */
    @Column(column = "xsd_id")
    public String xsd_id;

    /**
     * 单据号
     */
    @Column(column = "djh")
    public String djh;

    /**
     * 客户ID
     */
    @Column(column = "kh_id")
    public int kh_id;

    /**
     * 送货地址ID
     */
    @Column(column = "shdz_id")
    public int shdz_id;

    /**
     * 结算类型
     */
    @Column(column = "jslx",defaultValue = "0")
    public int jslx;


    /**
     * 结算金额
     */
    @Column(column = "jsje",defaultValue = "0")
    public double jsje;

    /**
     * 现金金额
     */
    @Column(column = "xjje",defaultValue = "0")
   public double xjje;


    /**
     * 银行金额
     */
    @Column(column = "yhje",defaultValue = "0")
   public double yhje;


    /**
     * 银行账户ID
     */
   @Column(column = "yhzh_id")
   public int yhzh_id;

    /**
     * 银行账户
      */
    @Column(column = "yhzh")
    public String yhzh;


    /**
     * 欠款金额
     */
    @Column(column = "qkje",defaultValue = "0")
    public double qkje;

    /**
     * 欠账天数
     */
    @Column(column = "zqts",defaultValue = "0")
    public int zqts;

    /**
     * 抹零金额
     */
    @Column(column = "mlje",defaultValue = "0")
    public double mlje;

    /**
     * 备注
     */
    @Column(column = "bz")
    public String  bz;

    /**
     * 单机标识,0-本地，1-网络
     */
    @Column(column = "djbz",defaultValue = "0")
    @NotNull
    public int djbz;

}
